
///////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////// Table A6 - Continious Ideology Measure //////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
use Data_OPO_Master.dta, clear
keep if use==1


** A. All Cases 

reg sc_cert_granted atty_dist circuit_dist inter_dist i.sc_term i.coa_circuit  if use==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_A.tex", nocons replace tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  i.sc_term i.coa_circuit  if use==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_A.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln i.sc_term i.coa_circuit  if use==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_A.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if use==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_A.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )


** B. Civil Cases 

reg sc_cert_granted atty_dist circuit_dist inter_dist i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_B.tex", nocons replace tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_B.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_B.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_B.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )


// Marginal Effects 

summarize inter_dist, detail
reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if use==1 & civil==1, cluster(sc_term)
margins, at(inter_dist=(-.4206358  3.846901))

di .0800558 - .058734 

** C. Criminal Cases 

reg sc_cert_granted atty_dist circuit_dist inter_dist i.sc_term i.coa_circuit  if use==1 & criminal==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_C.tex", nocons replace tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  i.sc_term i.coa_circuit  if use==1 & criminal==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_C.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln i.sc_term i.coa_circuit  if use==1 & criminal==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_C.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

reg sc_cert_granted atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if use==1 & criminal==1, cluster(sc_term)
outreg2 atty_dist circuit_dist inter_dist coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln using "TableA6_C.tex", nocons append tex dec(3) drop(coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit )

